#ifndef _DATA_EXCHANGE_
#define _DATA_EXCHANGE_

/// Struct for exchanging current coordinates of attackers
typedef struct attacker_t {
    int id;
    int type;
    float x;
    float y;
} attacker_t;

/// Struct for exchanging initial state of defenders (sent by Radar)
typedef struct __TxPackage {
	float	angle;	//when angle==0 means no need to fire, otherwise (0,180] means fire
	int     weaponType;
	long	hitedAttackerID;//the attacker will be hit in next period
	long    th;
	int	hit;
} Tx;

#endif // _DATA_EXCHANGE_
